package com.galgram.project.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.time.*;

import lombok.*;
import com.galgram.common.annotation.Excel;
import com.galgram.common.core.domain.BaseEntity;

/**
 * 订单对象 fx_order
 *
 * @author galgram
 * @date 2024-11-20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("fx_order")
public class FxOrder extends BaseEntity {

    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 课程id
     */
    @Excel(name = "课程id")
    private Long courseId;

    /**
     * 订单号
     */
    @Excel(name = "订单号")
    private Long orderNumber;

    /**
     * 下单时间
     */
    @Excel(name = "下单时间")
    private LocalDateTime orderTime;

    /**
     * 付款时间
     */
    @Excel(name = "付款时间")
    private LocalDateTime payTime;

    /**
     * 支付类型
     */
    @Excel(name = "支付类型")
    private String payType;

    /**
     * 订单状态(待支付|学习中|待评价|已评价|已关闭)
     */
    @Excel(name = "订单状态(待支付|学习中|待评价|已评价|已关闭)")
    private String state;

    /**
     * 订单价格
     */
    @Excel(name = "订单价格")
    private Float orderPrice;

    /**
     * 实际支付
     */
    @Excel(name = "实际支付")
    private Float payPrice;

    /**
     * 积分抵扣
     */
    @Excel(name = "积分抵扣")
    private Integer pointsAmount;

    /**
     * 优惠券抵扣
     */
    @Excel(name = "优惠券抵扣")
    private Integer couponAmount;

    /**
     * 用户评分
     */
    @Excel(name = "用户评分")
    private Float mark;

}
